package cn.qffj.memo.repository;

import cn.qffj.memo.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface UserRepository extends JpaRepository<User,Long> {
    //通过用户名查询
    public User findByUserName(String userName);
    //通过用户名密保问题进行判断
    public boolean existsByUserNameAndIssueResult(String userName,String issueRsult);
    //通过用户名信息判断
    public boolean existsByUserName(String userName);
    //通过密码判断
    public boolean existsByUserNameAndPassword(String username,String password);




}
